﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AAA.Meta.UIModel
{
    public class ListItemModel
    {
        private int _iDisplaySeq;

        public int DisplaySeq
        {
            get { return _iDisplaySeq; }
            set { _iDisplaySeq = value; }
        }

        private bool _isSelected;

        public bool IsSelected
        {
            get { return _isSelected; }
            set { _isSelected = value; }
        }

        private string _strText;

        public string Text
        {
            get { return _strText; }
            set { _strText = value; }
        }
        private object _oValue;

        public object Value
        {
            get { return _oValue; }
            set { _oValue = value; }
        }

        public ListItemModel(string strText)
            : this(strText, strText)
        {
        }

        public ListItemModel(string strText, object oValue)
        {
            Text = strText;
            Value = oValue;
        }

        public override string ToString()
        {
            return Text;
        }
    }
}
